﻿using System;
using DevExpress.Xpo;

namespace Aij1.Model
{
    /// <summary>
    /// 文章-关键词关联表
    /// </summary>
    [DeferredDeletion(false)]
    public class A_ArticleKeyword : XPObject
    {
        public A_ArticleKeyword(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        A_Article fArticleId;
        [Association("A_AK")]
        [Indexed("KeywordId", Unique = true)]
        public A_Article ArticleId
        {
            get { return fArticleId; }
            set { SetPropertyValue<A_Article>("ArticleId", ref fArticleId, value); }
        }

        A_Keyword fKeywordId;
        [Association("K_AK")]
        public A_Keyword KeywordId
        {
            get { return fKeywordId; }
            set { SetPropertyValue<A_Keyword>("KeywordId", ref fKeywordId, value); }
        }
    }
}